package com.bjtct.plugin.autogen.popup.actions;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;

import com.bjtct.plugin.autogen.wizards.AutoGenWizard;

public class AutoGenMenuAction implements IWorkbenchWindowActionDelegate {

	private IWorkbenchWindow window;
	@Override
	public void run(IAction arg0) {
		// TODO Auto-generated method stub
		 AutoGenWizard wizard = new AutoGenWizard();
		 WizardDialog dialog = new WizardDialog(window.getShell(),wizard);
		 dialog.open() ;
	}

	@Override
	public void selectionChanged(IAction arg0, ISelection arg1) {
		// TODO Auto-generated method stub

	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

	@Override
	public void init(IWorkbenchWindow arg0) {
		// TODO Auto-generated method stub
		this.window = arg0;
	}

}
